<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <title>Login</title>
    </h:head>
    <h:body>
        <ui:composition template="/Template/newTemplate.xhtml">
            
            <ui:define name="left">
                <h:outputText value="Log in to look at this!"></h:outputText>
            </ui:define>
            
            <ui:define name="content">
                <h:form>
                    <table>
                        <tr>
                            <td><h:outputText value="Username: "></h:outputText></td>
                            <td colspan="2"><h:inputText value="#{LoginBean.username}"></h:inputText></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td><h:outputText value="Password: "></h:outputText></td>
                            <td colspan="2"><h:inputSecret value="#{LoginBean.password}"></h:inputSecret></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><h:commandButton action="#{LoginBean.validate(LoginBean.username, LoginBean.password)}" value="Login"></h:commandButton></td>
                            <td><h:commandButton action="register" value="Register"></h:commandButton></td>
                        </tr>
                        <br></br>
                    </table>
                </h:form>
            </ui:define>
        </ui:composition>
    </h:body>
</html>

